import Vue from 'vue';
import VueI18n from 'vue-i18n';
import enUS from 'ant-design-vue/es/locale/default.js';
import zhCN from 'ant-design-vue/es/locale/zh_CN.js';
import * as moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('en');
Vue.use(VueI18n);
const i18n = new VueI18n({
    locale: 'zh',
    messages: {
        en: {
            msg: 'my name is daoyunliu',
            antd: enUS,
            chineseBtn: 'chinese',
            enBtn: 'English',
            helloWorld: {
                msg: 'Welcome to Your Vue.js + TypeScript App'
            },
            index: {
                h1Text: 'index'
            },
            name: {
                h1Text: 'name'
            },
            home: {
                linkIndex: 'index',
                linkName: 'name',
                linkAbout: 'about'
            },
            about: {
                h1Text: 'This is an about page',
                linkPage: 'entry pageIndex',
                linkForm: 'entry formBox'
            }
        },
        zh: {
            msg: '我是刘道云',
            antd: zhCN,
            chineseBtn: '中文',
            enBtn: '英文',
            helloWorld: {
                msg: '欢迎来到vue.js和ts应用app'
            },
            index: {
                h1Text: '首页'
            },
            name: {
                h1Text: '名字'
            },
            home: {
                linkIndex: '首页',
                linkName: '名字',
                linkAbout: '关于'
            },
            about: {
                h1Text: '这是关于的页面',
                linkPage: '进入首页',
                linkForm: '进入表单盒子'
            }
        }
    },
});
export default i18n;